package com.github.phoenics.militia.bazookaFx.model;

import javafx.beans.property.*;

/**
 * @author Phoenics Chow
 * on 2019年02月08日
 */
public class TableColumnModel  implements IModel {
    @Override
    public void clear() {

    }
    private LongProperty id=new SimpleLongProperty();
    private LongProperty tableId=new SimpleLongProperty();
    private StringProperty columnName=new SimpleStringProperty();
    private StringProperty columnCnName=new SimpleStringProperty();
    private StringProperty dataType=new SimpleStringProperty();
    private BooleanProperty isNullable=new SimpleBooleanProperty();
    private BooleanProperty columnKey=new SimpleBooleanProperty();
    private StringProperty columnComment=new SimpleStringProperty();


    public long getId() {
        return id.get();
    }

    public LongProperty idProperty() {
        return id;
    }

    public void setId(long id) {
        this.id.set(id);
    }

    public long getTableId() {
        return tableId.get();
    }

    public LongProperty tableIdProperty() {
        return tableId;
    }

    public void setTableId(long tableId) {
        this.tableId.set(tableId);
    }

    public String getColumnName() {
        return columnName.get();
    }

    public StringProperty columnNameProperty() {
        return columnName;
    }

    public void setColumnName(String columnName) {
        this.columnName.set(columnName);
    }

    public String getColumnCnName() {
        return columnCnName.get();
    }

    public StringProperty columnCnNameProperty() {
        return columnCnName;
    }

    public void setColumnCnName(String columnCnName) {
        this.columnCnName.set(columnCnName);
    }

    public String getDataType() {
        return dataType.get();
    }

    public StringProperty dataTypeProperty() {
        return dataType;
    }

    public void setDataType(String dataType) {
        this.dataType.set(dataType);
    }

    public boolean isIsNullable() {
        return isNullable.get();
    }

    public BooleanProperty isNullableProperty() {
        return isNullable;
    }

    public void setIsNullable(boolean isNullable) {
        this.isNullable.set(isNullable);
    }

    public boolean isColumnKey() {
        return columnKey.get();
    }

    public BooleanProperty columnKeyProperty() {
        return columnKey;
    }

    public void setColumnKey(boolean columnKey) {
        this.columnKey.set(columnKey);
    }

    public String getColumnComment() {
        return columnComment.get();
    }

    public StringProperty columnCommentProperty() {
        return columnComment;
    }

    public void setColumnComment(String columnComment) {
        this.columnComment.set(columnComment);
    }
}
